import request from '../lib/request.js';

//首页数据
export const getIndex =() =>{
	return request({uri:"/index",method:"get",params:{}});
}
//获取分类
export const getCategory = () =>{
	return request({uri:"/category/simple",method:"get",params:{}});
}
//获取分类产品
export const getCategoryProduct = (params)=> {
	return request({uri:"/category/product/lists",method:"get",params:params});
}
//获取产品详情
export const getProduct=(params)=>{
	return request({uri:"/product/info",method:"get",params:params})
}